package com.csyf.manager.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 冻结
 */
@Data
@Table(name = "sys_freeze")
public class SysFreeze implements Serializable {

    private static final long serialVersionUID = 1L;

    private String mchId;
    private String srcMchId;
    private String agentName;
    private String outTradeNo;
    private String srcOrderNo;
    private String serviceType;
    private BigDecimal totalFee;
    private BigDecimal srcFreezeFee;
    private BigDecimal mchFreezeFee;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date freezeTime;
    private String freezeStatus;

    @Transient
    private String freezeCreateTimeStr;
    @Transient
    private String freezeEndTimeStr;

}
